package com.hx.service;

import com.hx.dao.FoodTypeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.sql.DataSource;
import java.sql.SQLException;
@Service("foodTypeService")
public class FoodTypeServiceImpl implements FoodTypeService{
   @Resource(name="foodTypeDao")
    private FoodTypeDao foodTypeDao;
    @Override
    public int save() throws SQLException {
        int row = foodTypeDao.save();
        return row;
    }
}
